<?php slot('article') ?>
<?php use_stylesheet('/project_css_js/uudised.css') ?>
<?php use_stylesheet('/project_css_js/jquery.jscrollpane.css') ?>
<?php use_javascript('/project_css_js/js/jquery.jscrollpane.min.js')?>
<div class="pealkiri">
	<p class="mis"><?php echo __('uudiste blokk') ?></p>
</div>
<div class="tagasisidebox">
	<div class="scroll-pane-arrows">
<?php
$links = LinkGen::getInstance(LinkGen::NEWS)->collectionLinks($news);
?>
		<?php foreach($news as $new): ?>
		<div class="newsblock">
			<div class="newsblockleft">
				<img src="<?php echo @myPicture::getInstance($new['picture'])->thumbnail(129,85)->url() ?>" width="129" height="85" alt=""/>
			</div>
			<div class="newsblockright">
				<h1><?php echo $new['name'] ?></h1>
				<p style="padding:0px"><?php echo truncate($new['content'],120) ?></p>
				<div class="newslink">
					<a href="<?php echo isset($links[$new['id']]) ? $links[$new['id']] : '#' ?>"><?php echo __('Avasta siin') ?></a>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<?php endforeach; ?>
	</div>
<script type="text/javascript">
$(function()
{
	$('.scroll-pane').jScrollPane();
	$('.scroll-pane-arrows').jScrollPane(
		{
			showArrows: true,
			horizontalGutter: 10
		}
	);
});

</script>
</div>

<?php end_slot() ?>